/**
 * Created by Administrator on 2017/7/3.
 */




const env = process.env.NODE_ENV
const mobileVar = "pro"


const gbs = {
  db_prefix: "e_travel_",
  host: "/api",
  payHost: "http://e.shouqianya.cn/index.html#/userInfo/userCenter",
  imgHost: "http://image.allclinic.cn", // 图片host
  appDowloadUrl:
    "http://sj.qq.com/myapp/detail.htm?apkName=com.tencent.tmgp.mt4", // 下载地址
  appleDoctorDownUrl: "https://fir.im/starClinicDr",
  applePatientDownUrl: "https://fir.im/1kwr"
};

if (env == "development") {
  gbs.host = "/api"
} else if (env == "production") {
  gbs.host = "http://app.allclinic.cn/v2/patient"
}

if (mobileVar == "pro") {
  gbs.appleDoctorDownUrl = "https://itunes.apple.com/cn/app/id1428157734"
  gbs.applePatientDownUrl = "https://itunes.apple.com/cn/app/id1428155235"
} else if (mobileVar == "dev") {
  gbs.appleDoctorDownUrl = "https://fir.im/starClinicDr"
  gbs.applePatientDownUrl = "https://fir.im/1kwr"
}
export { gbs }
